package com.videoweb.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.videoweb.model.Danmaku;
import org.apache.ibatis.annotations.Select;

public interface DanmakuMapper extends BaseMapper<Danmaku> {
    @Select("SELECT * FROM danmaku WHERE video_id = #{videoId} ORDER BY timestamp ASC")
    List<Danmaku> findByVideoIdOrderByTimestampAsc(Long videoId);
}